﻿using HDM.NexusEngine.Core;

namespace HDM.NexusEngine.EngineTest
{
    public class Tile
    {
        private readonly Sprite _sprite;

        public Tile(Sprite sprite)
        {
            _sprite = sprite;
        }
        internal void SetPosition(double currentX, double currentY)
        {
            _sprite.SetPosition(currentX, currentY);
        }

        internal void Render(Renderer renderer)
        {
            renderer.DrawSprite(_sprite);
        }
    }
}